Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add polkadot + ksm grants integration #8269

Merged
merged 13 commits into from
Feb 3, 2021
Merged

chore: add polkadot + ksm grants integration #8269

merged 13 commits into from
Feb 3, 2021

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented Jan 19, 2021

Description
  • switch KSM to it's own chain ID (59)
  • tweak bounty flow to treat KSM and DOT as diff chains in frontend
  • add KSM + DOT support in grants
Testing Checklist
Bounty
  • Creation
  • Start work + Submit
  • Payout
Grants
  • Grant Creation
  • Grant Detail Page (View + Update)
  • Add to Cart
  • Contribute Flow
    • when one wallet extension is not installed
    • when not enough balance
    • when wallet is locked
    • when sign is rejected
    • when signature is approved
  • Chain validation + sending email on successful validation
Testing

KSM has some issues which need to follow up with polkadot team. It is breaking in live
KSM has been fixed by upgrading the bundle versions.
DOT seems to work fine on bounties and grants

https://share.vidyard.com/watch/fqZRThbNu1xRpphA7uCoki?

thelostone-mc and others added 5 commits January 19, 2021 21:11
- switch KSM to it's own chain ID (59)
- tweak bounty flow to treat KSM and DOT as diff chains in frontend
- add KSM + DOT support in grants
@thelostone-mc thelostone-mc marked this pull request as ready for review February 1, 2021 09:43
@amustapha
Copy link
Contributor

This still looks like a draft. Is it ready?

@thelostone-mc
Copy link
Member Author

@aamustapha yup it is ready!

Copy link
Contributor

@amustapha amustapha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few observations.

Also, why can't we have a single migration file for 109 x 110

app/assets/v2/js/grants/cart/polkadot_extension.js Outdated Show resolved Hide resolved
app/assets/v2/js/grants/cart/polkadot_extension.js Outdated Show resolved Hide resolved
if (error) {
vm.updatePaymentStatus(grant.grant_id, 'failed');
_alert('Please ensure you\'ve connected your polkadot extension to Gitcoin', 'error');
console.log(error);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😬 debugger line forgotten.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was intentional ! just so that the error stays ! cause this is behind a staff flag -> will remove this next week once folks test and we are sure it's smooth

app/assets/v2/js/grants/cart/polkadot_extension.js Outdated Show resolved Hide resolved
@thelostone-mc
Copy link
Member Author

@aamustapha recreated the migration file as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants